package com.temi.iot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author a
 * @since 2019-12-11
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_region")
@ApiModel(value="TbRegion对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class TbRegion extends Model {

    private static final long serialVersionUID = 1L;

    private Long id;

    private BigDecimal lat;

    private BigDecimal lon;

    private String province;

    private String city;

    private String area;

    private String street;

    private String detail;

    private String addressRigid;

    private LocalDateTime createTime;

    private String cext1;

    private String cext2;


    @Override
    protected Long pkVal() {
        return id;
    }
}
